﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200142D RID: 5165
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainVisitorBehavior : IMessage<TrainVisitorBehavior>, IMessage, IEquatable<TrainVisitorBehavior>, IDeepCloneable<TrainVisitorBehavior>, IBufferMessage
	{
		// Token: 0x1700411B RID: 16667
		// (get) Token: 0x0600E73D RID: 59197 RVA: 0x0026A338 File Offset: 0x00268538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainVisitorBehavior> Parser
		{
			get
			{
				return TrainVisitorBehavior._parser;
			}
		}

		// Token: 0x1700411C RID: 16668
		// (get) Token: 0x0600E73E RID: 59198 RVA: 0x0026A33F File Offset: 0x0026853F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainVisitorBehaviorReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700411D RID: 16669
		// (get) Token: 0x0600E73F RID: 59199 RVA: 0x0026A351 File Offset: 0x00268551
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainVisitorBehavior.Descriptor;
			}
		}

		// Token: 0x0600E740 RID: 59200 RVA: 0x0026A358 File Offset: 0x00268558
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorBehavior()
		{
		}

		// Token: 0x0600E741 RID: 59201 RVA: 0x0026A360 File Offset: 0x00268560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorBehavior(TrainVisitorBehavior other) : this()
		{
			this.isMeet_ = other.isMeet_;
			this.visitorId_ = other.visitorId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E742 RID: 59202 RVA: 0x0026A391 File Offset: 0x00268591
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorBehavior Clone()
		{
			return new TrainVisitorBehavior(this);
		}

		// Token: 0x1700411E RID: 16670
		// (get) Token: 0x0600E743 RID: 59203 RVA: 0x0026A399 File Offset: 0x00268599
		// (set) Token: 0x0600E744 RID: 59204 RVA: 0x0026A3A1 File Offset: 0x002685A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsMeet
		{
			get
			{
				return this.isMeet_;
			}
			set
			{
				this.isMeet_ = value;
			}
		}

		// Token: 0x1700411F RID: 16671
		// (get) Token: 0x0600E745 RID: 59205 RVA: 0x0026A3AA File Offset: 0x002685AA
		// (set) Token: 0x0600E746 RID: 59206 RVA: 0x0026A3B2 File Offset: 0x002685B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint VisitorId
		{
			get
			{
				return this.visitorId_;
			}
			set
			{
				this.visitorId_ = value;
			}
		}

		// Token: 0x0600E747 RID: 59207 RVA: 0x0026A3BB File Offset: 0x002685BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainVisitorBehavior);
		}

		// Token: 0x0600E748 RID: 59208 RVA: 0x0026A3C9 File Offset: 0x002685C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainVisitorBehavior other)
		{
			return other != null && (other == this || (this.IsMeet == other.IsMeet && this.VisitorId == other.VisitorId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E749 RID: 59209 RVA: 0x0026A408 File Offset: 0x00268608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsMeet)
			{
				num ^= this.IsMeet.GetHashCode();
			}
			if (this.VisitorId != 0U)
			{
				num ^= this.VisitorId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E74A RID: 59210 RVA: 0x0026A460 File Offset: 0x00268660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E74B RID: 59211 RVA: 0x0026A468 File Offset: 0x00268668
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E74C RID: 59212 RVA: 0x0026A474 File Offset: 0x00268674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsMeet)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.IsMeet);
			}
			if (this.VisitorId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.VisitorId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E74D RID: 59213 RVA: 0x0026A4D0 File Offset: 0x002686D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsMeet)
			{
				num += 2;
			}
			if (this.VisitorId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.VisitorId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E74E RID: 59214 RVA: 0x0026A51C File Offset: 0x0026871C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainVisitorBehavior other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsMeet)
			{
				this.IsMeet = other.IsMeet;
			}
			if (other.VisitorId != 0U)
			{
				this.VisitorId = other.VisitorId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E74F RID: 59215 RVA: 0x0026A56C File Offset: 0x0026876C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E750 RID: 59216 RVA: 0x0026A578 File Offset: 0x00268778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.VisitorId = input.ReadUInt32();
					}
				}
				else
				{
					this.IsMeet = input.ReadBool();
				}
			}
		}

		// Token: 0x04005B71 RID: 23409
		private static readonly MessageParser<TrainVisitorBehavior> _parser = new MessageParser<TrainVisitorBehavior>(() => new TrainVisitorBehavior());

		// Token: 0x04005B72 RID: 23410
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005B73 RID: 23411
		public const int IsMeetFieldNumber = 7;

		// Token: 0x04005B74 RID: 23412
		private bool isMeet_;

		// Token: 0x04005B75 RID: 23413
		public const int VisitorIdFieldNumber = 13;

		// Token: 0x04005B76 RID: 23414
		private uint visitorId_;
	}
}
